package com.cqhilink.iot.jobstandardmanagement.facade.service.valve;

import com.cqhilink.iot.jobstandardmanagement.facade.model.Valve;
import com.cqhilink.iot.jobstandardmanagement.facade.model.Ztree;

import java.util.List;
import java.util.Map;

/**
 * @Author 卢曼成
 * @Description 阀室、阀井service层
 * @CreateDateTime 2017/5/23 15:00
 **/
public interface JsmValveService {
    /**
     * 根据ID查询
     *
     * @param valveId
     * @return
     */
    Valve selectByPrimaryKey(String valveId);

    /**
     * @param valveId
     * @return Map<String, Object>
     * @Author 卢曼成
     * @Description 逻辑删除
     * @CreateDateTime 2017/5/23 15:01
     */
    Map<String, Object> deleteLists(String valveId);


    /**
     * @param record
     * @return Map<String, Object>
     * @Author 卢曼成
     * @Description 分页查询
     * @CreateDateTime 2017/5/23 15:01
     */
    Map<String, Object> getPageList(Valve record);

    /**
     * @param record
     * @return Map<String, Object>
     * @Author 卢曼成
     * @Description 保存
     * @CreateDateTime 2017/5/23 15:01
     */
    Map<String, Object> save(Valve record);

    /**
     * @param record
     * @return Map<String, Object>
     * @Author 卢曼成
     * @Description 修改
     * @CreateDateTime 2017/5/23 15:01
     */
    Map<String, Object> update(Valve record);

    /**
     * @param orgId
     * @param pOrgId
     * @param keyword
     * @return List<Ztree>
     * @Author 卢曼成
     * @Description 查询树形
     * @CreateDateTime 2017/5/23 15:01
     */
    List<Ztree> initTree(String orgId, String pOrgId, String keyword);
}
